﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Net.Sockets;

namespace network
{
    public static class Socorro
    {
        public static void call()
        {
            int serverPort = 3002; // sends to the election listener
            ASCIIEncoding encoder = new ASCIIEncoding();
            byte[] outBuffer = encoder.GetBytes("SOCORRO -10");
            UdpClient sender = new UdpClient(AddressFamily.InterNetwork);
            sender.Send(outBuffer, outBuffer.Length, new IPEndPoint(IPAddress.Broadcast, serverPort));
        }
    }
}
